package com.fh.job;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.fh.util.JsonUtil;
import org.springframework.beans.factory.annotation.Autowired;

import com.fh.service.loantaskimpl.LoanTaskUnderServiceImpl;
import com.fh.util.HttpUtils;


public class LoanInfoActionJob {

	@Autowired
	private LoanTaskUnderServiceImpl loanTaskUnderServiceImpl;

	protected void execute() {
		List<Map<String, Object>> lists=new ArrayList<>();
		String sendPost = HttpUtils.sendPost("http://10.1.20.108:8006/cash/v1/api/borrowing/findUserOverdueDetailInfo", new HashMap<String, String>());//得到json数据
		Map jsonToMap= new HashMap();//转换map并保存数据
		jsonToMap = JsonUtil.jsonToMap(sendPost);
		if ("200".equals(jsonToMap.get("code"))) {
			for (Map<String, Object> model : lists = (List<Map<String, Object>>) jsonToMap.get("model")) {
				//model.get("")
			}
			;
		}
		
		

	}
}
